'use strict'

const Controller = require('egg').Controller

class TestTestforeignController extends Controller {
  async testforeignList() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.testTestforeign.testforeignList(data)
  }

  async testforeignAdd() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.testTestforeign.testforeignAdd(data)
  }

  async testforeignUpdate() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.testTestforeign.testforeignUpdate(data)
  }
  
  async testforeignDelete() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.testTestforeign.testforeignDelete(data)
  }

  async testforeignAddBatch() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.testTestforeign.testforeignAddBatch(data)
  }
  
  async testforeignDeleteBatch() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.testTestforeign.testforeignDeleteBatch(data)
  }
}

module.exports = TestTestforeignController
